<template>
    <view class="flex-col homepage">
        <view class="flex-row wrapper">
            <view class="u-line-1 text">身高</view>
            <view class="u-line-1 text-two">{{convention.bloodRoutineExaminatioId}}</view>
        </view>
        <view class="flex-row wrapper">
            <view class="u-line-1 text">体重</view>
            <view class="u-line-1 text-two">{{convention.liverId}}</view>
        </view>
        <view class="flex-col wrapper-two">
            <view class="flex-row wraper-row">
                <view class="u-line-1 text-three">高血压</view>
                <view class="u-line-1 text-four">{{convention.hypertension}}</view>
            </view>
            <view class="u-line-1 text-five">参考范围：{{convention.hypertensionReference}}</view>
            <view class="u-line-1 text-six"></view>
        </view>
        <view class="flex-row wrapper-three">
            <view class="u-line-1 text-seven">低血压</view>
            <view class="flex-col flex-row wraper-col">
                <view class="u-line-1 text-eight">参考范围：{{convention.hypotension}}</view>
                <view class="u-line-1 text-nine">{{convention.hypotensionReference}}</view>
            </view>
        </view>
    </view>
</template>
<script>
    export default {
        data() {
            return {
				URL:'http://localhost:9000/',//主域名
				convention:''
			}
        },
        methods: {

        },
		onLoad(res) {
			console.log(res.id)
			uni.request({
				url:this.URL+"record/record/convention/convention/"+res.id,
				method:"GET",
				success: (res) => {
					this.convention = res.data.data.convention
					console.log(this.convention)
				}
				
			})
		}
    }
</script>
<style lang="scss" scoped>
    /** 全局样式-开始,建议放在公共css样式文件中,比如common.css 或app.vue文件 */

    html,
    body {
        margin: 0;
        width: 100%;
        height: 100%;
        font-size: 16px
    }

    view,
    text,
    image {
        position: relative;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .flex-col {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .flex-row {
        display: flex;
        align-items: flex-start;
    }

    .flex-col .flex-row {
        width: 100%
    }

    /** 全局样式-结束*/

    .homepage {
        padding: 80rpx 16rpx 0rpx 16rpx;
        border-width: 30rpx;

        .wrapper {
            width: 718rpx;
            justify-content: space-between;
            padding: 32rpx 0rpx 30rpx 0rpx;
            border-bottom-width: 2rpx;
            border-bottom-style: solid;

            .text {
                width: 92rpx;
                font-size: 32rpx;
            }

            .text-two {
                width: 114rpx;
            }
        }

        .wrapper-two {
            width: 100%;
            padding: 32rpx 0rpx 10rpx 0rpx;
            border-bottom-width: 2rpx;
            border-bottom-style: solid;

            .wraper-row {
                width: 718rpx;
                justify-content: space-between;
                margin-bottom: 8rpx;

                .text-three {
                    width: 118rpx;
                    font-size: 32rpx;
                }

                .text-four {
                    width: 114rpx;
					right: 10px;
                }
            }

            .text-five {
                width: 324rpx;
                margin-left: 394rpx;
                font-size: 2rpx;
                color: #aaaaaa;
            }

            .text-six {
                bottom: 42rpx;
                left: -16rpx;
                position: absolute;
            }
        }

        .wrapper-three {
            width: 718rpx;
            justify-content: space-between;
            padding: 32rpx 0rpx 28rpx 0rpx;
            border-bottom-width: 2rpx;
            border-bottom-style: solid;

            .text-seven {
                width: 108rpx;
                font-size: 32rpx;
            }

            .wraper-col {
                width: 324rpx;

                .text-eight {
                    width: 100%;
                    margin: 32rpx 0rpx -70rpx 0rpx;
                    font-size: 2rpx;
                    color: #aaaaaa;
                }

                .text-nine {
                    width: 114rpx;
                    margin-left: 210rpx;
                }
            }
        }
    }
</style>